package my.merborn.ordersysteam105.models.pojo.enums;

public enum Power {
    ADMIN,NORMAL,VIP;

    public static Power parsePower(String power){
            if(ADMIN.toString().equals(power)){
                return ADMIN;
            }else if(NORMAL.toString().equals(power)){
                return NORMAL;
            }else if(VIP.toString().equals(power)){
                return VIP;
            }else return null;
    }
    public String getPower(){
        return this.toString();
    }
}
